import { axios } from '@/utils/request'

// 新增
export function apiAdd(data) {
  return axios({
    url: '/agentSettlement/add',
    method: 'post',
    data
  })
}
// 编辑
export function apiEdit(data) {
  return axios({
    url: '/agentSettlement/edit',
    method: 'post',
    data
  })
}
// 编辑
export function apiDel(data) {
  return axios({
    url: '/agentSettlement/delete',
    method: 'post',
    data
  })
}
// 获取客户列表
export function apiGeCustomList() {
  return axios({
    url: '/gzCustomInfo/list',
    method: 'get',
    params: { pageNo: 1, pageSize: 9999999 }
  })
}
// 自动结算生成收益
export function apiAutoSettlemenIncome(data) {
  return axios({
    url: '/agentSettlement/automaticallySettleProfits',
    method: 'post',
    data
  })
}

// 导出

export function apiImport(data) {
  return axios({
    url: '/agentSettlement/list/download',
    method: 'post',
    responseType: 'blob',
    data
  })
}

// 批量删除
export function apiBatchDel(data) {
  return axios({
    url: '/agentSettlement/deleteAll',
    method: 'post',
    data
  })
}
